def write_func(file, mode, s):
    with open('data/' + file, mode, encoding='utf-8') as f:
        f.write(s)


def read_func(file, mode):
    with open('data/' + file, mode, encoding='utf-8') as f:
        s = f.read()
        print('s = ', s)


def copy_func(src, dest):
    with open('data/' + src, 'r', encoding='utf-8') as f1:
        with open('data/' + dest, 'w', encoding='utf-8') as f2:
            f2.write(f1.read())


write_func('eee.txt', 'w', '春节除夕不放假')
read_func('eee.txt', 'r')
copy_func('eee.txt', 'fff.txt')
